package com.wgl.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wgl.model.order.OrderInfo;
import com.wgl.model.order.PaymentInfo;

import java.util.Map;

/**
 * @author wgl
 * @version 1.0.0
 * @ClassName PaymentService.java
 * @Description TODO
 * @createTime 2022年02月14日 22:39:00
 */
public interface PaymentService extends IService<PaymentInfo> {
    /**
    * @Author: Wgl
    * @Description: 添加支付记录
    * @Date: 2022/2/15 11:01;
    * @param orderInfo:
     * @param status: ;
    * @return: void;
    */
    void savePaymentInfo(OrderInfo orderInfo, Integer status);
    /**
    * @Author: Wgl
    * @Description: 更改订单状态
    * @Date: 2022/2/15 21:50;
    * @param out_trade_no:
     * @param resultMap: ;
    * @return: void;
    */
    void paySuccess(String out_trade_no, Map<String,Object> resultMap);
    /**
    * @Author: Wgl
    * @Description: 获取支付记录
    * @Date: 2022/2/15 22:47;
    * @param orderId:
     * @param paymentType: ;
    * @return: com.wgl.model.order.PaymentInfo;
    */
    public PaymentInfo getPaymentInfo(Long orderId, Integer paymentType);
}
